﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ITheme.cs" company="LeagueSharp">
//   Copyright (C) 2015 LeagueSharp
//   
//   This program is free software: you can redistribute it and/or modify
//   it under the terms of the GNU General Public License as published by
//   the Free Software Foundation, either version 3 of the License, or
//   (at your option) any later version.
//   
//   This program is distributed in the hope that it will be useful,
//   but WITHOUT ANY WARRANTY; without even the implied warranty of
//   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//   GNU General Public License for more details.
//   
//   You should have received a copy of the GNU General Public License
//   along with this program.  If not, see <http://www.gnu.org/licenses/>.
// </copyright>
// <summary>
//   Defines a Theme used to draw components of the menu.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace LeagueSharp.SDK.Core.UI.IMenu.Skins
{
    using LeagueSharp.SDK.Core.UI.IMenu.Abstracts;
    using LeagueSharp.SDK.Core.UI.IMenu.Values;

    using SharpDX;

    /// <summary>
    ///     Defines a Theme used to draw components of the menu.
    /// </summary>
    public interface ITheme
    {
        #region Public Methods and Operators

        /// <summary>
        ///     Draws the list of root menus on the given position.
        /// </summary>
        void Draw();

        #endregion

        /// <summary>
        /// Builds a new handler for the given <see cref="Menu"/>.
        /// </summary>
        /// <param name="menu">The <see cref="Menu"/> where this handler is responsible for.</param>
        /// <returns>The handler</returns>
        ADrawable<Menu> BuildMenuHandler(Menu menu);

        /// <summary>
        /// Builds a new handler for the given <see cref="MenuBool"/>.
        /// </summary>
        /// <param name="component">The <see cref="MenuBool"/> where this handler is responsible for.</param>
        /// <returns>The handler</returns>
        ADrawable<MenuBool> BuildBoolHandler(MenuBool component);

        /// <summary>
        /// Builds a new handler for the given <see cref="MenuButton"/>.
        /// </summary>
        /// <param name="component">The <see cref="MenuButton"/> where this handler is responsible for.</param>
        /// <returns>The handler</returns>
        ADrawable<MenuButton> BuildButtonHandler(MenuButton component);

        /// <summary>
        /// Builds a new handler for the given <see cref="MenuColor"/>.
        /// </summary>
        /// <param name="component">The <see cref="MenuColor"/> where this handler is responsible for.</param>
        /// <returns>The handler</returns>
        ADrawable<MenuColor> BuildColorHandler(MenuColor component);

        /// <summary>
        /// Builds a new handler for the given <see cref="MenuKeyBind"/>.
        /// </summary>
        /// <param name="component">The <see cref="MenuKeyBind"/> where this handler is responsible for.</param>
        /// <returns>The handler</returns>
        ADrawable<MenuKeyBind> BuildKeyBindHandler(MenuKeyBind component);

        /// <summary>
        /// Builds a new handler for the given <see cref="MenuList"/>.
        /// </summary>
        /// <param name="component">The <see cref="MenuList"/> where this handler is responsible for.</param>
        /// <returns>The handler</returns>
        ADrawable<MenuList> BuildListHandler(MenuList component);

        /// <summary>
        /// Builds a new handler for the given <see cref="MenuSeparator"/>.
        /// </summary>
        /// <param name="component">The <see cref="MenuSeparator"/> where this handler is responsible for.</param>
        /// <returns>The handler</returns>
        ADrawable<MenuSeparator> BuildSeparatorHandler(MenuSeparator component);

        /// <summary>
        /// Builds a new handler for the given <see cref="MenuSlider"/>.
        /// </summary>
        /// <param name="component">The <see cref="MenuSlider"/> where this handler is responsible for.</param>
        /// <returns>The handler</returns>
        ADrawable<MenuSlider> BuildSliderHandler(MenuSlider component);
    }
}